return new_context;
}
-static void
-gdk_broadway_drag_drag_drop (GdkDrag *context,
- guint32 time)
-{
- g_return_if_fail (context != NULL);
-}
-
void
_gdk_broadway_surface_register_dnd (GdkSurface *surface)
{
GdkDragClass *context_class = GDK_DRAG_CLASS (klass);
object_class->finalize = gdk_broadway_drag_finalize;
-
- context_class->drag_drop = gdk_broadway_drag_drag_drop;
}
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
}
-/*
- * gdk_drag_drop:
- * @drag: a #GdkDrag
- * @time_: the timestamp for this operation
- *
- * Drops on the current destination.
- *
- * This function is called by the drag source.
- */
-void
-gdk_drag_drop (GdkDrag *drag,
- guint32 time_)
-{
- g_return_if_fail (GDK_IS_DRAG (drag));
-
- GDK_DRAG_GET_CLASS (drag)->drag_drop (drag, time_);
-}
-
static void
gdk_drag_write_done (GObject *content,
GAsyncResult *result,
struct _GdkDragClass {
GObjectClass parent_class;
- void (*drag_drop) (GdkDrag *drag,
- guint32 time_);
GdkSurface* (*get_drag_surface) (GdkDrag *drag);
void (*set_hotspot) (GdkDrag *drag,
gint hot_x,
GdkCursor * gdk_drag_get_cursor (GdkDrag *drag,
GdkDragAction action);
-void gdk_drag_drop (GdkDrag *drag,
- guint32 time_);
-
void gdk_drag_write_async (GdkDrag *drag,
const char *mime_type,
GOutputStream *stream,
return dnd_actions;
}
-static void
-gdk_wayland_drag_drag_drop (GdkDrag *drag,
- guint32 time)
-{
-}
-
static void
gdk_wayland_drag_init (GdkWaylandDrag *drag_wayland)
{
object_class->finalize = gdk_wayland_drag_finalize;
- drag_class->drag_drop = gdk_wayland_drag_drag_drop;
drag_class->get_drag_surface = gdk_wayland_drag_get_drag_surface;
drag_class->set_hotspot = gdk_wayland_drag_set_hotspot;
drag_class->drop_done = gdk_wayland_drag_drop_done;
GDK_NOTE (DND, g_print ("gdk_win32_drag_drop_performed: 0x%p %u\n",
drag,
time_));
- gdk_drag_drop (drag, time_);
+
+ gdk_win32_drag_drop (drag, time_);
gdk_drag_set_cursor (drag, NULL);
drag_context_ungrab (drag);
}
object_class->finalize = gdk_win32_drag_finalize;
- drag_class->drag_drop = gdk_win32_drag_drop;
-
drag_class->get_drag_surface = gdk_win32_drag_get_drag_surface;
drag_class->set_hotspot = gdk_win32_drag_set_hotspot;
drag_class->drop_done = gdk_win32_drag_drop_done;
GdkDragAction suggested_action,
GdkDragAction possible_actions,
guint32 time);
-static void gdk_x11_drag_drag_drop (GdkDrag *drag,
+static void gdk_x11_drag_drop (GdkDrag *drag,
guint32 time_);
static GdkSurface * gdk_x11_drag_get_drag_surface (GdkDrag *drag);
static void gdk_x11_drag_set_hotspot (GdkDrag *drag,
object_class->finalize = gdk_x11_drag_finalize;
- drag_class->drag_drop = gdk_x11_drag_drag_drop;
drag_class->get_drag_surface = gdk_x11_drag_get_drag_surface;
drag_class->set_hotspot = gdk_x11_drag_set_hotspot;
drag_class->drop_done = gdk_x11_drag_drop_done;
}
static void
-gdk_x11_drag_drag_drop (GdkDrag *drag,
- guint32 time)
+gdk_x11_drag_drop (GdkDrag *drag,
+ guint32 time)
{
GdkX11Drag *drag_x11 = GDK_X11_DRAG (drag);
gdk_x11_drag_drop_performed (GdkDrag *drag,
guint32 time_)
{
- gdk_drag_drop (drag, time_);
+ gdk_x11_drag_drop (drag, time_);
drag_ungrab (drag);
}